package com.liang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liang.entity.CYun;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 李昂
 * @since 2021-03-28
 */
public interface CYunMapper extends BaseMapper<CYun> {

    //获取百度云资源链接
    @Select("select * from c_yun where LOCATE(#{name},sourcename)")
    IPage<CYun> getResource(Page<CYun> page, String name, int state);
}
